/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package week02;

//import lucian.*;

/**
 *
 * @author depit
 */
public class Fish extends pet{
	int currentDepth=0;
	  public int dive(int howDeep){
		currentDepth=currentDepth + howDeep;
		  if (currentDepth > 100){
			  System.out.println("I am a little fish and "
						  + " can't dive below 150 feet");
			  currentDepth=currentDepth - howDeep;
		  }else{
			System.out.println("Diving for " + howDeep +
												 " feet");
			System.out.println("I'm at " + currentDepth +
							" feet below the sea level");
		  }
		  return currentDepth;
		}
		public String say(String something){
		   return "Don't you know that fish do not talk?";
		}

}
